<?php
class ChargerController extends Yaf_Controller_Abstract{
	const NET_OK = 10;
	public function init(){
		Yaf_Loader::import('import.php');
	}
	/**
	 * 充电桩首页
	 * @method indexAction
	 * @return [type]      [description]
	 * @author NewFuture
	 */
	public function indexAction(){

	}
	/**
	 * 充电桩添加
	 * @method addChargerAction
	 * @return [type]      [description]
	 * @author NewFuture
	 */
	public function addChargerAction(){
		$result = net::inst('autoBG')->pointFloorSelect();
		if(isset($result->ret)&&$result->ret == self::NET_OK){
			$this->getView()->assign('floorDetail',$result->list);
		}else if(isset($result->ret)&&$result->ret == self::NET_NOAUTH){
			$this->getView()->assign('error',$result->msg);
		}else{
			$this->getView()->assign('error','服务器连接错误!');
		}
	}
	/**
	 * 充电桩编辑
	 * @method chargerEditAction
	 * @return [type]      [description]
	 * @author NewFuture
	 */
	public function chargerEditAction(){

	}
	/**
	 * 充电桩详情
	 * @method chargerDetailAction
	 * @return [type]      [description]
	 * @author NewFuture
	 */
	public function chargerDetailAction(){

	}
}